<?xml version="1.0" ?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
	<class name="cn.firstsoft.modules.workflow.domain.WorkflowConvert"
		table="workflow_convert">
		<id name="id" type="integer"  >
			 <column name="id" />
            <generator class="native" >
				<param name="sequence">WORKFLOW_CONVERT_ID_SEQ</param>
            </generator>
		</id>
		<many-to-one name="targetWorkFlow"
					class="cn.firstsoft.modules.workflow.domain.Workflow"
			fetch="select">
			<column name="targetWorkflow_id" />
		</many-to-one>
		<many-to-one name="sourceWorkFlow"
			class="cn.firstsoft.modules.workflow.domain.Workflow"
			fetch="select">
			<column name="sourceWorkFlow_id" />
		</many-to-one>
		<set name="workflowConvertFields"   inverse="true"
			cascade="delete"  >
			<key>
				<column name="workflowconvert_id" />
			</key>
			<one-to-many
				class="cn.firstsoft.modules.workflow.domain.WorkflowConvertField" />
		</set>
	</class>
</hibernate-mapping>